<test>
  <sql>SELECT	*
FROM	JoinTable1 t1
			LEFT JOIN JoinTable2 t2 ON t2.ID = t1.ID
</sql>
  <expectedResults>
    <NewDataSet>
  <xs:schema id="NewDataSet" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
      <xs:complexType>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="Table1">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="ID" type="xs:string" minOccurs="0" />
                <xs:element name="Value" type="xs:string" minOccurs="0" />
                <xs:element name="ID1" msdata:Caption="ID" type="xs:string" minOccurs="0" />
                <xs:element name="Value1" msdata:Caption="Value" type="xs:string" minOccurs="0" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
    </xs:element>
  </xs:schema>
  <Table1>
    <ID>2</ID>
    <Value>Two</Value>
    <ID1>2</ID1>
    <Value1>Two</Value1>
  </Table1>
  <Table1>
    <ID>3</ID>
    <Value>Three</Value>
  </Table1>
</NewDataSet>
  </expectedResults>
  <expectedPlan>
    <executionPlan>
      <element operator="Select">
        <properties>
          <property name="Output List.[0]" value="t1.ID AS ID" />
          <property name="Output List.[0].Table" value="t1" />
          <property name="Output List.[0].Column" value="ID" />
          <property name="Output List.[0].DataType" value="String" />
          <property name="Output List.[0].Output Name" value="ID" />
          <property name="Output List.[1]" value="t1.Value AS Value" />
          <property name="Output List.[1].Table" value="t1" />
          <property name="Output List.[1].Column" value="Value" />
          <property name="Output List.[1].DataType" value="String" />
          <property name="Output List.[1].Output Name" value="Value" />
          <property name="Output List.[2]" value="t2.ID AS ID" />
          <property name="Output List.[2].Table" value="t2" />
          <property name="Output List.[2].Column" value="ID" />
          <property name="Output List.[2].DataType" value="String" />
          <property name="Output List.[2].Output Name" value="ID" />
          <property name="Output List.[3]" value="t2.Value AS Value" />
          <property name="Output List.[3].Table" value="t2" />
          <property name="Output List.[3].Column" value="Value" />
          <property name="Output List.[3].DataType" value="String" />
          <property name="Output List.[3].Output Name" value="Value" />
        </properties>
        <input>
          <element operator="HashMatch">
            <properties>
              <property name="Output List.[0]" value="t2.ID" />
              <property name="Output List.[0].Table" value="t2" />
              <property name="Output List.[0].Column" value="ID" />
              <property name="Output List.[0].DataType" value="String" />
              <property name="Output List.[1]" value="t2.Value" />
              <property name="Output List.[1].Table" value="t2" />
              <property name="Output List.[1].Column" value="Value" />
              <property name="Output List.[1].DataType" value="String" />
              <property name="Output List.[2]" value="t1.ID" />
              <property name="Output List.[2].Table" value="t1" />
              <property name="Output List.[2].Column" value="ID" />
              <property name="Output List.[2].DataType" value="String" />
              <property name="Output List.[3]" value="t1.Value" />
              <property name="Output List.[3].Table" value="t1" />
              <property name="Output List.[3].Column" value="Value" />
              <property name="Output List.[3].DataType" value="String" />
              <property name="Statistics.Open Count" value="1" />
              <property name="Statistics.Row Count" value="2" />
              <property name="Statistics.Average Row Count" value="2" />
              <property name="Hash Keys Build" value="t2.ID" />
              <property name="Hash Keys Build.Table" value="t2" />
              <property name="Hash Keys Build.Column" value="ID" />
              <property name="Hash Keys Build.DataType" value="String" />
              <property name="Hash Keys Probe" value="t1.ID" />
              <property name="Hash Keys Probe.Table" value="t1" />
              <property name="Hash Keys Probe.Column" value="ID" />
              <property name="Hash Keys Probe.DataType" value="String" />
              <property name="Logical Operator" value="Right Outer Join" />
            </properties>
            <input>
              <element operator="TableScan">
                <properties>
                  <property name="Table" value="JoinTable2 AS t2" />
                  <property name="Output List.[0]" value="t2.ID" />
                  <property name="Output List.[0].Table" value="t2" />
                  <property name="Output List.[0].Column" value="ID" />
                  <property name="Output List.[0].DataType" value="String" />
                  <property name="Output List.[1]" value="t2.Value" />
                  <property name="Output List.[1].Table" value="t2" />
                  <property name="Output List.[1].Column" value="Value" />
                  <property name="Output List.[1].DataType" value="String" />
                  <property name="Statistics.Open Count" value="1" />
                  <property name="Statistics.Row Count" value="2" />
                  <property name="Statistics.Average Row Count" value="2" />
                </properties>
                <input />
              </element>
              <element operator="TableScan">
                <properties>
                  <property name="Table" value="JoinTable1 AS t1" />
                  <property name="Output List.[0]" value="t1.ID" />
                  <property name="Output List.[0].Table" value="t1" />
                  <property name="Output List.[0].Column" value="ID" />
                  <property name="Output List.[0].DataType" value="String" />
                  <property name="Output List.[1]" value="t1.Value" />
                  <property name="Output List.[1].Table" value="t1" />
                  <property name="Output List.[1].Column" value="Value" />
                  <property name="Output List.[1].DataType" value="String" />
                  <property name="Statistics.Open Count" value="1" />
                  <property name="Statistics.Row Count" value="2" />
                  <property name="Statistics.Average Row Count" value="2" />
                </properties>
                <input />
              </element>
            </input>
          </element>
        </input>
      </element>
    </executionPlan>
  </expectedPlan>
</test>